<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
	
	<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
	<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
	<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
	<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
	<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script> 

	<title>后台管理</title>
</head>

<body class="body_ifm">
	<div class="infoboxp"> 
		<div class="admin_new_tip">
			<a href="javascript:;" class="admin_new_tip_close"></a>
			<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
			<div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
			<div class="admin_new_tip_list_cont">
				<div class="admin_new_tip_list">
					管理员可以通过“计划任务”实现自动刷新职位、简历刷新和生成XML操作。计划任务可以设置计划类型按“天、周、月”方式去执行！
				</div>
			</div>
		</div>

		<div class="clear"></div>
		
		<div class="admin_new_search_box">
			<div class="admin_new_select">
				<a href="index.php?m=cron&c=add" class="admin_new_cz_tj" style="margin-left:0px;">+ 添加任务</a>
			</div>

			<div class="clear"></div>
			<div style="height:10px;"></div>

			<div class="table-list">
				<div class="admin_table_border">
					<form action="" name="myform" method="get">
						<input type="hidden" name="pytoken" id='pytoken'  value="{yun:}$pytoken{/yun}">
						
						<table width="100%">
							<thead>
								<tr class="admin_table_top">
									<th align="left"><div style="padding-left:10px;">任务名称</div></th>
									<th align="left">执行文件</th>
									<th align="left">执行类型</th>
									<th align="left">是否启用</th>
									<th align="left">上次执行时间</th>
									<th align="left">下次执行时间</th>
									<th width="180">操作</th>
								</tr>
							</thead>
							<tbody>
								{yun:}foreach item=v from=$rows{/yun}
									<tr align="left">
										<td align="left" class="td1"><div style="padding-left:10px;">{yun:}$v.name{/yun}</div></td>
										<td  align="left" class="ud">{yun:}$v.dir{/yun}</td>
										<td class="ud" align="left">
											{yun:}if $v.type==1{/yun}每周{yun:}/if{/yun}
											{yun:}if $v.type==2{/yun}每月{yun:}/if{/yun}
											{yun:}if $v.type==3{/yun}每天{yun:}/if{/yun}
											{yun:}if $v.type==4{/yun}每隔N秒{yun:}/if{/yun}
										</td>
										<td class="od" align="left"> 
											{yun:}if $v.display==1{/yun}是{yun:}/if{/yun}
											{yun:}if $v.display==2{/yun}否{yun:}/if{/yun}
										</td>
										<td  align="left" class="ud">
											{yun:}if $v.nowtime{/yun}{yun:}$v.nowtime|date_format:"%Y-%m-%d %H:%M"{/yun}{yun:}else{/yun}- -{yun:}/if{/yun}
										</td>
										<td  align="left" class="ud">
											{yun:}if $v.nexttime{/yun}{yun:}$v.nexttime|date_format:"%Y-%m-%d %H:%M"{/yun}{yun:}else{/yun}- -{yun:}/if{/yun}
										</td>
										<td align="center"> 
											
											{yun:}if $v.display==1{/yun}
												<a href="javascript:void(0)" onclick="layer_del('确定现在执行该任务？', 'index.php?m=cron&c=run&id={yun:}$v.id{/yun}');" class="admin_new_c_bth">执行</a>
											{yun:}else if $v.display==2{/yun}
												<a href="javascript:void(0)" onclick="layer_del('该任务尚未启用！', 'index.php?m=cron');" class="admin_new_c_bth">执行</a>
											{yun:}/if{/yun}
											<a href="index.php?m=cron&c=add&id={yun:}$v.id{/yun}"class="admin_new_c_bth">修改</a> 
											<a href="javascript:void(0)" onclick="layer_del('确定要删除？', 'index.php?m=cron&c=del&id={yun:}$v.id{/yun}');" class="admin_new_c_bth admin_new_c_bth_sc">删除</a>
										</td>
									</tr>
								{yun:}/foreach{/yun}
							</tbody>
						</table>
					</form>
				</div>
			</div>
		</div>
	</div>
</body>
</html>